package com.itstherules.jmsunit;

import com.itstherules.jmsunit.managers.QueueManagersFactory;
import com.itstherules.jmsunit.managers.QueueManagersFactory.QueueManagerType;


public final class JmsUnit {
	
	public static JmsInlineMock mock(String uri, QueueManagerType queueManagerType) throws Exception {
		return new JmsInlineMock(QueueManagersFactory.create(uri, queueManagerType));
	}

	public static JmsSender sender(String queue, String uri, QueueManagerType queueManagerType) throws Exception {
		return new JmsClient(QueueManagersFactory.create(uri, queueManagerType), queue);
	}
	
	
}
